package cn.dlc.com.config.response;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @Author: dlc
 * @Date: 2021/8/2 - 15:27
 */
@AllArgsConstructor
public enum ResponseHttpStatus {

    REQUEST_SUCCESS(200, "请求成功"),
    SAVE_SUCCESS(200, "保存成功"),
    SUBMIT_SUCCESS(200, "提交成功"),
    DELETE_SUCCESS(200, "删除成功"),

    REQUEST_ERROR(500, "请求失败"),
    SAVE_ERROR(500, "保存失败"),
    SUBMIT_ERROR(500, "提交失败"),
    DELETE_ERROR(500, "删除失败"),

    ARGS_ERROR(500, "参数非法"),

    REQUEST_FORBIDDEN(403, "请求禁止")

    ;

    private int code;

    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
